﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="averageRating.aspx.vb" Inherits="travel.averageRating" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .style1
        {
            font-size: x-large;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <p>
        <span class="style1">Average Ratings</span><br />
    </p>
 
    <p>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            DataSourceID="SqlDataSource1">
            <Columns>
                <asp:BoundField DataField="HotelName" HeaderText="HotelName" 
                    SortExpression="HotelName" />
                <asp:BoundField DataField="AverageRating" HeaderText="AverageRating" 
                    ReadOnly="True" SortExpression="AverageRating" />
            </Columns>
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:travelConnectionString %>" 
            ProviderName="<%$ ConnectionStrings:travelConnectionString.ProviderName %>" 
            SelectCommand="SELECT [HotelName], [AverageRating] FROM [FullHotelRating]">
        </asp:SqlDataSource>
    </p>
    <p>
    </p>
</asp:Content>
